<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>话题管理-有点</title>
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>/public/admin/css/css.css" />
<script type="text/javascript" src="<?php echo base_url()?>/public/admin/js/jquery.min.js"></script>
<!-- <script type="text/javascript" src="js/page.js" ></script> -->
</head>

<body>
	<div id="pageAll" >
		<div class="pageTop">
			<div class="page">
				<img src="img/coin02.png" /><span><a href="#">首页</a>&nbsp;-&nbsp;<a
					href="#">公共管理</a>&nbsp;-</span>&nbsp;意见管理
			</div>
		</div>

		<div class="page">
			<!-- topic页面样式 -->
			<div class="topic">
				<div class="conform">
					<form>
						<div class="cfD">
							<input class="addUser" type="text" placeholder="话题ID/行家UID/话题标题" />
							<button class="button">搜索</button>
							<a class="addA addA1" href="<?php echo site_url()?>/admin/newsss/add">添加文章</a>
						</div>
					</form>
				</div>
				<!-- topic表格 显示 -->
				<div class="conShow">
					<table border="1" cellspacing="0" cellpadding="0">
						<tr>
							<td width="66px" class="tdColor tdC">序号</td>
							<td width="200px" class="tdColor">文章图片</td>
							<td width="200px" class="tdColor">文章标题</td>
							<td width="300px" class="tdColor">文章内容</td>
							<td width="155px" class="tdColor">发布时间</td>
							<td width="130px" class="tdColor">操作</td>
						</tr>
						<?php foreach($arr as $k =>$v):?>
						<tr>
							<td><?php echo $v['news_id'] ?></td>
							<td><img src="/ci/public/uploads/<?= $v['news_img']?>" width="100px" height="100px" alt="" />
							
							</td>
							<td><?= $v['news_title']?></td>
							<td>
								<?php echo mb_substr($v['news_content'], 0,20) ?>...
							</td>
							<td><?= date('Y-m-d h:i:s',$v['news_time'])?></td>
							
							<td><a href="<?php echo site_url()?>/admin/newsss/update?id=<?php echo $v['news_id']?>">
							<img class="operation" src="<?php echo base_url()?>/public/admin/img/update.png"></a> 
							<a href="<?php echo site_url()?>/admin/newsss/del?id=<?php echo $v['news_id']?>">
							<img class="operation delban"
								src="<?php echo base_url()?>/public/admin/img/delete.png"></a>
							</td>
						</tr>
					<?php endforeach?>
					</table>
					<div class="paging">
					<?= $links?>
					</div>
				</div>
				<!-- topic 表格 显示 end-->
			</div>
			<!-- topic页面样式end -->
		</div>

	</div>


	<!-- 删除弹出框 -->
	<div class="banDel">
		<div class="delete">
			<div class="close">
				<a><img src="img/shanchu.png" /></a>
			</div>
			<p class="delP1">你确定要删除此条记录吗？</p>
			<p class="delP2">
				<a href="#" class="ok yes">确定</a><a class="ok no">取消</a>
			</p>
		</div>
	</div>
	<!-- 删除弹出框  end-->
</body>

<script type="text/javascript">
// 广告弹出框
$(".delban").click(function(){
  $(".banDel").show();
});
$(".close").click(function(){
  $(".banDel").hide();
});
$(".no").click(function(){
  $(".banDel").hide();
});
// 广告弹出框 end
</script>
</html>